#include<bits/stdc++.h>
using namespace std;
long long r[100000],a[100000];
long long n;
long long ans,cnt;
bool flag=true;
int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
cin>>n;
for(int i=0;i<n;i++){
    cin>>r[i];
}
sort(r,r+n);
//for(int i=0;i<n;i++){
    //ans++;
//}
//for(int i=0;i<n;i++){
        //for(int j=0;j<n;j++){
          //if(r[i+j]-r[1]==0){
            //ans=n;

    //}

//}
    //cout<<ans;
    //break;
//}

    for(int i=0;i<n;i++)
{
    if(r[i+1]>r[i]&&r[i+1]!=r[i]&&r[i+2]-r[i]>=r[i+1]-r[i]||i+1==n){
        ans++;
        r[i+1]=r[i];
        flag=false;
    }


//if(n-ans<=0){
    //cnt=-(n-ans);
    //cout<<cnt;
//}
//else{
}
    cout<<n-ans;

return 0;
}
